//
//  ConstHeader.h
//  TIMChat
//
//  Created by wilderliao on 16/2/17.
//  Copyright © 2016年 AlexiChen. All rights reserved.
//

#ifndef ConstHeader_h
#define ConstHeader_h

#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
#define     SCREEN_WIDTH    [[UIScreen mainScreen] bounds].size.width

#define     SCREEN_HEIGHT   [[UIScreen mainScreen] bounds].size.height
#define LG_BannerColor [UIColor colorWithRed:162.0/255 green:219.0/255 blue:246.0/255 alpha:100]
#define LG_ButtonColor_Selected [UIColor colorWithRed:20/255.0 green:155/255.0 blue:213/255.0 alpha:1.0]
#define SA_AllBackColor [UIColor colorFromHex:@"f1f2f5"]
#define DefineWeakSelf __weak __typeof(self) weakSelf = self

#define SIZETONORMAL(bigSize)  (bigSize/3)
#define YYEncode(str) [str dataUsingEncoding:NSUTF8StringEncoding]
#define PATH_CACHE_FOLDER  [[NSHomeDirectory() stringByAppendingPathComponent:@"Library"] stringByAppendingPathComponent:@"Caches"]
#define imgHeight  (CGRectGetWidth([UIScreen mainScreen].bounds) - 140)/3

#define XcodeAppVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]

#import "UIColor+Hex.h"

#import "NSString+getDateTime.h"


#endif /* ConstHeader_h */
